package com.hsd.ha.app;

import java.util.HashMap;
import java.util.Map;

public class PHYCONSTANTS {
	
   public static final String PHY_01 = "1";//平和质
   public static final String PHY_02 = "2";//气虚质
   public static final String PHY_03 = "3";//阳虚质
   public static final String PHY_04 = "4";//阴虚质
   public static final String PHY_05 = "5";//痰湿质
   public static final String PHY_06 = "6"; //湿热质
   public static final String PHY_07 = "7";//血瘀质
   public static final String PHY_08 = "8";//气郁质
   public static final String PHY_09 = "9"; //特禀质
   public static final String PHY_10 = "10";//基本平和质
   
	private static Map<String, String> TZ_MAP = new HashMap();
 	static {
	 		TZ_MAP.put("pinghezhi", PHYCONSTANTS.PHY_01);//平和质
	 		TZ_MAP.put("qixuzhi",  PHYCONSTANTS.PHY_02);//气虚质
	 		TZ_MAP.put("yangxuzhi",  PHYCONSTANTS.PHY_03);//阳虚质
	 		TZ_MAP.put("yinxuzhi",  PHYCONSTANTS.PHY_04);//阴虚质
	 		TZ_MAP.put("qiyuzhi",  PHYCONSTANTS.PHY_05);//痰湿质
	 		TZ_MAP.put("shirezhi",  PHYCONSTANTS.PHY_06);//湿热质
	 		TZ_MAP.put("xuetanzhi",  PHYCONSTANTS.PHY_07);//血瘀质
	 		TZ_MAP.put("qiyuzhi",  PHYCONSTANTS.PHY_08);//气郁质
	 		TZ_MAP.put("tebingzhi",  PHYCONSTANTS.PHY_09);//特禀质
	 		TZ_MAP.put("jibenpinghezhi",  PHYCONSTANTS.PHY_10);//基本平和质
 	}
 	public static String getPhyCodeByStr(String phyStr){
 		return (String)TZ_MAP.get(phyStr);
 	}
}
